<!--
 * @Description:
 * @Author: dh
 * @Date: 2022-01-21 13:41:19
 * @LastEditors: dh
 * @LastEditTime: 2025-10-22 13:18:40
-->
<template>
	<div>
		<el-button type="danger" @click="emitMsg">触发msg事件</el-button>
	</div>
</template>

<script setup lang="ts">
import { getCurrentInstance } from 'vue'
const instance = getCurrentInstance()

const emitMsg = function () {
	instance?.proxy?.$bus.emit('msg')
}
</script>
